<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .container{
            width: 100vw;
            height: 100vh;   /* 高度必须要给，直接设置100%不显示*/
            background: pink;
            background-image: url('https://img1.baidu.com/it/u=3407875929,841654473&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800');
            background-repeat: no-repeat;
            background-size: cover;
            /* background-position: 100px 100px; */
        }
    </style>
</head>
<body>
    <div class="container"">

    </div>
</body>
</html>